import request from '@/utils/request'

//  列表
export function groupList(query) {
    return request({
        url: '/system/group/list',
        method: 'get',
        params: query
    })
}

// 详情
export function groupInfo(groupId) {
    return request({
        url: '/system/group/' + groupId,
        method: 'get'
    })
}

// 新增 
export function addGroup(data) {
    return request({
        url: '/system/group',
        method: 'post',
        data: data
    })
}
 
// 修改 
export function editGroup(data) {
  return request({
    url: '/system/group',
    method: 'put',
    data: data
  })
}

// 删除 
export function delGroup(groupId) {
  return request({
    url: '/system/group/' + groupId,
    method: 'delete'
  })
}
